package cn.elwy.rcp.ui.explorer.create;

import org.eclipse.jface.viewers.CheckStateChangedEvent;

import cn.elwy.rcp.ui.explorer.core.vo.BuilderModule;
import cn.elwy.rcp.ui.table.listener.TablePaneCheckStateListener;

public class ModuleChoiceCheckStateListener extends TablePaneCheckStateListener {

  public ModuleChoiceCheckStateListener() {
  }

  @Override
  public void checkStateChanged(CheckStateChangedEvent event) {
    Object element = event.getElement();
    if (element instanceof BuilderModule) {
      BuilderModule builderModule = (BuilderModule) element;
      builderModule.setBuilder(event.getChecked());
    }
  }

}
